﻿// 功能：窗口事件
// 描述：
// 作者：温伟鹏
// 日期：2010/11/2 13:12:14

using System;
using System.Collections.Generic;
using System.Text;

namespace MeizuSDK.Presentation
{
    /// <summary>
    /// 当屏幕显示方向被改变后触发此事件
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    public delegate void ScreenRotatedEventHandler(object sender,ScreenRotatedEventArgs e);
    /// <summary>
    /// ScreenRotated事件参数
    /// </summary>
    public class ScreenRotatedEventArgs:EventArgs
    {
        /// <summary>
        /// 获取屏幕当前显示方向
        /// </summary>
        public ScreenRotationAngle Orientation
        {
            get;
            private set;
        }
        /// <summary>
        /// 构造ScreenRotated事件参数实例
        /// </summary>
        /// <param name="orientation"></param>
        public ScreenRotatedEventArgs(ScreenRotationAngle orientation)
        {
            this.Orientation = orientation;
        }
    }
}
